package org.basket.core;

import com.google.appengine.api.datastore.Entity;
import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.KeyFactory;

/*
 * AdminUser [kind:"AdminUser", id:"AdminUser"][password: "password"]
 */
public class AdminUser implements EntityAtom {
	public static final String KIND = "AdminUser";
	public static final String PASSWORD = "password";
	public static final Key key = KeyFactory.createKey(KIND, KIND);

	private final String password; // user name

	public AdminUser(String password) {
		this.password = password;
	}

	public Entity getEntity() {
		Entity entity = new Entity(key);
		entity.setProperty(PASSWORD, password);
		return entity;
	}
}
